

#import <UIKit/UIKit.h>
#import <sqlite3.h>
#import "Person.h"
#import <AddressBookUI/ABPeoplePickerNavigationController.h>

@interface  ContactListViewController : UIViewController<UITableViewDelegate, UITableViewDataSource, UISearchBarDelegate, ABPeoplePickerNavigationControllerDelegate> {
	NSMutableDictionary *indexedContactDict;
	NSArray *indexLetters;
	UITableView* _tableView;
	sqlite3 *database;
	NSString* databasePath;
	BOOL isPersonal;
	UISearchBar* _searchBar;
	NSMutableDictionary *UNIDDict;

}

@property (nonatomic, retain) NSMutableDictionary *indexedContactDict;
@property (nonatomic, retain) NSMutableDictionary *UNIDDict;
@property (nonatomic, retain) NSArray *indexLetters;
@property (nonatomic, retain) UITableView *_tableView;



- (void)initDisplayList;
- (void)getNameWithKeyword:(NSString*)keyword;
- (Person*)getPersonByUNIDInPersonal:(NSString*)personName;
- (Person*)getPersonByUNIDInDirectory:(NSString*)UNID ;
- (UITableView*)tableView;
@end
